import Vue from 'vue';
import Router from 'vue-router';
import Welcome from './components/Welcome.vue';
import User from './components/User.vue';
import Goods from './components/Goods.vue';
import Update from './components/Update.vue';
import Classic from './components/Classic.vue';
import Fashion from './components/Fashion.vue';

Vue.use(Router);

const router = new Router({
    routes: [
        { path: '/', redirect: '/welcome' },
        { path: '/welcome', component: Welcome },
        { path: '/user', component: User },
        {
            path: '/goods',
            component: Goods,
            children: [{
                path: '/update',
                component: Update,
                children: [{
                    path: '/fashion',
                    component: Fashion
                }]
            }, {
                path: '/classic',
                component: Classic
            }]
        }
    ]
});

export default router;